import type { LoginParams, LoginRes } from "@/types/user"
import { request } from "@/utils/reuqest"

export const loginAPI = (data: LoginParams) =>{
  //三个参数，请求路径，请求方式，请求参数
  return request<LoginRes>('/park/login','POST', data)
}